<!doctype html>



  


<html class="theme-next mist use-motion" lang="zh-Hans">
<head>
  <meta charset="UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"/>



<meta http-equiv="Cache-Control" content="no-transform" />
<meta http-equiv="Cache-Control" content="no-siteapp" />












  
  
  <link href="/lib/fancybox/source/jquery.fancybox.css?v=2.1.5" rel="stylesheet" type="text/css" />




  
  
  
  

  
    
    
  

  

  

  

  

  
    
    
    <link href="//fonts.googleapis.com/css?family=Lato:300,300italic,400,400italic,700,700italic&subset=latin,latin-ext" rel="stylesheet" type="text/css">
  






<link href="/lib/font-awesome/css/font-awesome.min.css?v=4.6.2" rel="stylesheet" type="text/css" />

<link href="/css/main.css?v=5.1.0" rel="stylesheet" type="text/css" />


  <meta name="keywords" content="hexo,css," />





  <link rel="alternate" href="/atom.xml" title="Kingname" type="application/atom+xml" />




  <link rel="shortcut icon" type="image/x-icon" href="/favicon.ico?v=5.1.0" />






<meta name="description" content="Coney是一个非常漂亮的Hexo主题，作者的博客请戳-&amp;gt;http://gengbiao.me/ 本博客的主题是基于Coney修改而成。
我个人比较喜欢侧边栏在左边，于是我希望能将右侧的侧边栏整体移动到左边去。大家对比我的博客首页和主题作者的博客首页就可以看出不同。
在修改之前，需要解释一下div标签。不讲定义，只举例子。大家注意这篇文章的配图。设想有这样一个场景，你要搬家，从成都搬到北京">
<meta property="og:type" content="article">
<meta property="og:title" content="修改Coney主题之侧边栏移位">
<meta property="og:url" content="https://kingname.info/2014/12/15/修改Coney主题之侧边栏移位/index.html">
<meta property="og:site_name" content="Kingname">
<meta property="og:description" content="Coney是一个非常漂亮的Hexo主题，作者的博客请戳-&amp;gt;http://gengbiao.me/ 本博客的主题是基于Coney修改而成。
我个人比较喜欢侧边栏在左边，于是我希望能将右侧的侧边栏整体移动到左边去。大家对比我的博客首页和主题作者的博客首页就可以看出不同。
在修改之前，需要解释一下div标签。不讲定义，只举例子。大家注意这篇文章的配图。设想有这样一个场景，你要搬家，从成都搬到北京">
<meta property="og:image" content="http://7sbpmp.com1.z0.glb.clouddn.com/change_coney_0.jpg">
<meta property="og:image" content="http://7sbpmp.com1.z0.glb.clouddn.com/change_coneyconey_layout.png">
<meta property="og:image" content="http://7sbpmp.com1.z0.glb.clouddn.com/change_coneyopenaside.jpg">
<meta property="og:image" content="http://7sbpmp.com1.z0.glb.clouddn.com/change_coneyopenaside_change1.jpg">
<meta property="og:image" content="http://7sbpmp.com1.z0.glb.clouddn.com/change_coneycloseaside1.jpg">
<meta property="og:image" content="http://7sbpmp.com1.z0.glb.clouddn.com/change_coneycloseaside2.jpg">
<meta property="og:image" content="http://7sbpmp.com1.z0.glb.clouddn.com/change_coneymain_right.jpg">
<meta property="og:image" content="http://7sbpmp.com1.z0.glb.clouddn.com/change_coneymain_change2.jpg">
<meta property="og:image" content="http://7sbpmp.com1.z0.glb.clouddn.com/change_coneyopenaside.jpg">
<meta property="og:image" content="http://7sbpmp.com1.z0.glb.clouddn.com/change_coneymove.jpg">
<meta property="og:image" content="http://7sbpmp.com1.z0.glb.clouddn.com/change_coneydis.jpg">
<meta property="og:image" content="http://7sbpmp.com1.z0.glb.clouddn.com/change_coneydis2.jpg">
<meta property="og:image" content="http://7sbpmp.com1.z0.glb.clouddn.com/change_coneydis3.jpg">
<meta property="og:image" content="http://7sbpmp.com1.z0.glb.clouddn.com/change_coneydis4.jpg">
<meta property="og:updated_time" content="2016-11-30T13:56:55.000Z">
<meta name="twitter:card" content="summary">
<meta name="twitter:title" content="修改Coney主题之侧边栏移位">
<meta name="twitter:description" content="Coney是一个非常漂亮的Hexo主题，作者的博客请戳-&amp;gt;http://gengbiao.me/ 本博客的主题是基于Coney修改而成。
我个人比较喜欢侧边栏在左边，于是我希望能将右侧的侧边栏整体移动到左边去。大家对比我的博客首页和主题作者的博客首页就可以看出不同。
在修改之前，需要解释一下div标签。不讲定义，只举例子。大家注意这篇文章的配图。设想有这样一个场景，你要搬家，从成都搬到北京">
<meta name="twitter:image" content="http://7sbpmp.com1.z0.glb.clouddn.com/change_coney_0.jpg">



<script type="text/javascript" id="hexo.configurations">
  var NexT = window.NexT || {};
  var CONFIG = {
    root: '/',
    scheme: 'Mist',
    sidebar: {"position":"left","display":"post"},
    fancybox: true,
    motion: true,
    duoshuo: {
      userId: '0',
      author: '博主'
    },
    algolia: {
      applicationID: '',
      apiKey: '',
      indexName: '',
      hits: {"per_page":10},
      labels: {"input_placeholder":"Search for Posts","hits_empty":"We didn't find any results for the search: ${query}","hits_stats":"${hits} results found in ${time} ms"}
    }
  };
</script>



  <link rel="canonical" href="https://kingname.info/2014/12/15/修改Coney主题之侧边栏移位/"/>





  <title> 修改Coney主题之侧边栏移位 | Kingname </title>
</head>

<body itemscope itemtype="http://schema.org/WebPage" lang="zh-Hans">

  










  
  
    
  

  <div class="container one-collumn sidebar-position-left page-post-detail ">
    <div class="headband"></div>

    <header id="header" class="header" itemscope itemtype="http://schema.org/WPHeader">
      <div class="header-inner"><div class="site-meta ">
  

  <div class="custom-logo-site-title">
    <a href="/"  class="brand" rel="start">
      <span class="logo-line-before"><i></i></span>
      <span class="site-title">Kingname</span>
      <span class="logo-line-after"><i></i></span>
    </a>
  </div>
  <p class="site-subtitle">给时光以生命。</p>
</div>

<div class="site-nav-toggle">
  <button>
    <span class="btn-bar"></span>
    <span class="btn-bar"></span>
    <span class="btn-bar"></span>
  </button>
</div>

<nav class="site-nav">
  

  
    <ul id="menu" class="menu">
      
        
        <li class="menu-item menu-item-home">
          <a href="/" rel="section">
            
              <i class="menu-item-icon fa fa-fw fa-home"></i> <br />
            
            首页
          </a>
        </li>
      
        
        <li class="menu-item menu-item-archives">
          <a href="/archives" rel="section">
            
              <i class="menu-item-icon fa fa-fw fa-archive"></i> <br />
            
            归档
          </a>
        </li>
      
        
        <li class="menu-item menu-item-tags">
          <a href="/tags" rel="section">
            
              <i class="menu-item-icon fa fa-fw fa-tags"></i> <br />
            
            标签
          </a>
        </li>
      
        
        <li class="menu-item menu-item-tweet">
          <a href="/tweet" rel="section">
            
              <i class="menu-item-icon fa fa-fw fa-twitter"></i> <br />
            
            时间
          </a>
        </li>
      
        
        <li class="menu-item menu-item-about">
          <a href="/about" rel="section">
            
              <i class="menu-item-icon fa fa-fw fa-user"></i> <br />
            
            关于
          </a>
        </li>
      

      
    </ul>
  

  
</nav>



 </div>
    </header>

    <main id="main" class="main">
      <div class="main-inner">
        <div class="content-wrap">
          <div id="content" class="content">
            

  <div id="posts" class="posts-expand">
    

  

  
  
  

  <article class="post post-type-normal " itemscope itemtype="http://schema.org/Article">
  <link itemprop="mainEntityOfPage" href="https://kingname.info/2014/12/15/修改Coney主题之侧边栏移位/">

  <span style="display:none" itemprop="author" itemscope itemtype="http://schema.org/Person">
    <meta itemprop="name" content="Kingname">
    <meta itemprop="description" content="">
    <meta itemprop="image" content="/images/avatar.png">
  </span>

  <span style="display:none" itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
    <meta itemprop="name" content="Kingname">
    <span style="display:none" itemprop="logo" itemscope itemtype="http://schema.org/ImageObject">
      <img style="display:none;" itemprop="url image" alt="Kingname" src="">
    </span>
  </span>

    
      <header class="post-header">

        
        
          <h1 class="post-title" itemprop="name headline">
            
            
              
                修改Coney主题之侧边栏移位
              
            
          </h1>
        

        <div class="post-meta">
          <span class="post-time">
            
              <span class="post-meta-item-icon">
                <i class="fa fa-calendar-o"></i>
              </span>
              <span class="post-meta-item-text">发表于</span>
              <time title="Post created" itemprop="dateCreated datePublished" datetime="2014-12-15T18:09:54+08:00">
                2014-12-15
              </time>
            

            

            
          </span>

          
            <span class="post-category" >
              <span class="post-meta-divider">|</span>
              <span class="post-meta-item-icon">
                <i class="fa fa-folder-o"></i>
              </span>
              <span class="post-meta-item-text">分类于</span>
              
                <span itemprop="about" itemscope itemtype="http://schema.org/Thing">
                  <a href="/categories/Hexo/" itemprop="url" rel="index">
                    <span itemprop="name">Hexo</span>
                  </a>
                </span>

                
                
              
            </span>
          

          
            
              <span class="post-comments-count">
                <span class="post-meta-divider">|</span>
                <a href="/2014/12/15/修改Coney主题之侧边栏移位/#comments" itemprop="discussionUrl">
                  <span class="post-comments-count ds-thread-count" data-thread-key="2014/12/15/修改Coney主题之侧边栏移位/" itemprop="commentCount"></span>
                </a>
              </span>
            
          

          

          
          

          

          

        </div>
      </header>
    


    <div class="post-body" itemprop="articleBody">

      
      

      
        <p><img src="http://7sbpmp.com1.z0.glb.clouddn.com/change_coney_0.jpg" alt=""></p>
<p>Coney是一个非常漂亮的Hexo主题，作者的博客请戳-&gt;<a href="http://gengbiao.me/" target="_blank" rel="external">http://gengbiao.me/</a> 本博客的主题是基于Coney修改而成。</p>
<p>我个人比较喜欢侧边栏在左边，于是我希望能将右侧的侧边栏整体移动到左边去。大家对比我的博客首页和主题作者的博客首页就可以看出不同。</p>
<p>在修改之前，需要解释一下div标签。不讲定义，只举例子。大家注意这篇文章的配图。设想有这样一个场景，你要搬家，从成都搬到北京。你可以一件一件的把家里的东西搬出来，然后运到北京，再放进新的家。也可以，把你的整个房子连根撬起来，用超人或者热气球直接运送到北京去。这么做的好处是，你只需要搬房子，而房子里面的东西完全不受影响。div标签就可是实现这样的功能。</p>
<p>使用Chrome的审查元素功能，可以发现这个主题首页的正文部分的布局是这样的：</p>
<p><img src="http://7sbpmp.com1.z0.glb.clouddn.com/change_coneyconey_layout.png" alt=""></p>
<p>其中A，B分别是控制侧边栏开启和关闭的开关，A是openaside, B是closeaside，在侧边栏开启的时候，A是隐藏的。</p>
<p>当然实际的布局里还有其他div，但是当我只需要知道你有一个房子，房子里有几间房间的时候，我是没有必要去关心你卫生间里是马桶还是痰盂的。</p>
<p>那么现在目标就是，把asidepart，openaside这两个东西移动到左边，把main移动到右边。我这里没有说closeaside，不是笔误，而是因为closeaside是在asidepart里面的，因此移动asidepart的时候，closeaside跟着就移动了。</p>
<p>打开themes\coney\source\css_partial文件夹，发现有一个aside.styl文件，根据名字猜测，这个东西应该就是关于侧边栏的布局了。</p>
<p>打开aside.styl文件，发现这其实就是一个css文件。首先看到前面几段代码：<br><figure class="highlight plain"><table><tr><td class="gutter"><pre><div class="line">1</div><div class="line">2</div><div class="line">3</div><div class="line">4</div><div class="line">5</div><div class="line">6</div><div class="line">7</div><div class="line">8</div><div class="line">9</div><div class="line">10</div><div class="line">11</div><div class="line">12</div><div class="line">13</div><div class="line">14</div><div class="line">15</div><div class="line">16</div><div class="line">17</div><div class="line">18</div><div class="line">19</div><div class="line">20</div><div class="line">21</div><div class="line">22</div><div class="line">23</div><div class="line">24</div><div class="line">25</div><div class="line">26</div><div class="line">27</div><div class="line">28</div><div class="line">29</div><div class="line">30</div><div class="line">31</div><div class="line">32</div><div class="line">33</div><div class="line">34</div><div class="line">35</div><div class="line">36</div><div class="line">37</div><div class="line">38</div><div class="line">39</div><div class="line">40</div><div class="line">41</div><div class="line">42</div><div class="line">43</div><div class="line">44</div></pre></td><td class="code"><pre><div class="line">//button</div><div class="line">.openaside</div><div class="line">  display none</div><div class="line">  position fixed</div><div class="line">  right 7.5%</div><div class="line">  top 260px</div><div class="line">  a</div><div class="line">    display block</div><div class="line">    color color-white</div><div class="line">    border 1px solid color-white</div><div class="line">    border-radius 5px</div><div class="line">    background color-theme</div><div class="line">    padding 0.2em 0.55em</div><div class="line">    &amp;::before</div><div class="line">      font-family font-icon-family</div><div class="line">      font-smoothing()</div><div class="line">      content &quot;\f0c9&quot;</div><div class="line"></div><div class="line">.closeaside</div><div class="line">  display none</div><div class="line">  a</div><div class="line">    color color-theme</div><div class="line">    &amp;:hover</div><div class="line">      color color-blue</div><div class="line">    &amp;::before</div><div class="line">      font-family font-icon-family</div><div class="line">      font-smoothing()</div><div class="line">      content &quot;\f0c9&quot;</div><div class="line">  @media tablet</div><div class="line">    display block</div><div class="line">    position absolute</div><div class="line">    right 25px</div><div class="line">    top 22px</div><div class="line"></div><div class="line">//sidebar</div><div class="line">#asidepart</div><div class="line">  background color-section</div><div class="line">  margin 1em 0 0</div><div class="line">  padding 0.5em 2% 1em</div><div class="line">  @media tablet</div><div class="line">    position relative</div><div class="line">    float left</div><div class="line">    width 18%</div><div class="line">    margin 2em 0 0 3%</div></pre></td></tr></table></figure></p>
<p>Coney作者的命名方式非常好，于是我们很容易就看到了需要的内容。<br>在.openaside下面，看到一个<br><figure class="highlight plain"><table><tr><td class="gutter"><pre><div class="line">1</div></pre></td><td class="code"><pre><div class="line">right 7.5%</div></pre></td></tr></table></figure></p>
<p>当我们隐藏了侧边栏以后，看到的小方块，就是箭头指向的这个</p>
<p><img src="http://7sbpmp.com1.z0.glb.clouddn.com/change_coneyopenaside.jpg" alt=""></p>
<p>如果我把这个right改成left会有什么效果呢？不妨一试</p>
<p><img src="http://7sbpmp.com1.z0.glb.clouddn.com/change_coneyopenaside_change1.jpg" alt=""></p>
<p>看起来有点效果了。那么继续看下面的.closeaside<br><figure class="highlight plain"><table><tr><td class="gutter"><pre><div class="line">1</div></pre></td><td class="code"><pre><div class="line">right 25px</div></pre></td></tr></table></figure></p>
<p>尝试把right修改为left,对比一下前后效果：</p>
<p>修改前：</p>
<p><img src="http://7sbpmp.com1.z0.glb.clouddn.com/change_coneycloseaside1.jpg" alt=""></p>
<p>修改后:</p>
<p><img src="http://7sbpmp.com1.z0.glb.clouddn.com/change_coneycloseaside2.jpg" alt=""></p>
<p>这个小图标在侧边栏里面的相对位置改变了，这就像是你从家里的卧室走到了厨房。你并不关心房子外面是不是奥特曼在打小怪兽。你只是换了一个房间。</p>
<p>再往下走，发现#asidepart下面有个<br><figure class="highlight plain"><table><tr><td class="gutter"><pre><div class="line">1</div><div class="line">2</div></pre></td><td class="code"><pre><div class="line">position relative</div><div class="line">float left</div></pre></td></tr></table></figure></p>
<p>我想把侧边栏从右边移动到左边，那这里应该有个right才对，为什么它竟然是left？而且position的意思是位置，relative是相对，也就是说是相对位置？很奇怪，先不动它。</p>
<p>再来找找main在哪里。在themes\coney\source\css_partial下面的index.styl里发现了它。<br><figure class="highlight plain"><table><tr><td class="gutter"><pre><div class="line">1</div><div class="line">2</div><div class="line">3</div><div class="line">4</div><div class="line">5</div><div class="line">6</div><div class="line">7</div><div class="line">8</div><div class="line">9</div></pre></td><td class="code"><pre><div class="line">#main</div><div class="line">  margin 1em 0 0</div><div class="line">  line-height line-height+0.3</div><div class="line">  @media tablet</div><div class="line">    margin 2em 0 0</div><div class="line">    width 75%</div><div class="line">    position relative</div><div class="line">    float left</div><div class="line">    transition margin 0.5s ease-out</div></pre></td></tr></table></figure></p>
<p>这里发现了一个left，既然我想把main从左边移动到右边，那就尝试把这个left改成right,然后测试一下效果。</p>
<p><img src="http://7sbpmp.com1.z0.glb.clouddn.com/change_coneymain_right.jpg" alt=""></p>
<p>哈哈，成了！</p>
<p>等等，别高兴的太早，点一下关闭侧边栏的按钮试一试。</p>
<p><img src="http://7sbpmp.com1.z0.glb.clouddn.com/change_coneymain_change2.jpg" alt=""></p>
<p>是不是感觉怪怪的？对比一下作者的博客效果</p>
<p><img src="http://7sbpmp.com1.z0.glb.clouddn.com/change_coneyopenaside.jpg" alt=""></p>
<p>隐藏侧边栏以后，文章列表应该向右移动，那我把侧边栏移动到左边并隐藏以后，文章列表应该向左移动才对啊！可是它为什么死在那里了？</p>
<p>经过询问作者，我得知这个文章列表的移动的相关javascript代码在after_footer.ejs文件中。<br><figure class="highlight plain"><table><tr><td class="gutter"><pre><div class="line">1</div><div class="line">2</div><div class="line">3</div><div class="line">4</div><div class="line">5</div><div class="line">6</div><div class="line">7</div><div class="line">8</div><div class="line">9</div><div class="line">10</div><div class="line">11</div><div class="line">12</div><div class="line">13</div><div class="line">14</div><div class="line">15</div><div class="line">16</div></pre></td><td class="code"><pre><div class="line">var m = $(&apos;#main&apos;),</div><div class="line">      a = $(&apos;#asidepart&apos;),</div><div class="line">      c = $(&apos;.closeaside&apos;),</div><div class="line">      o = $(&apos;.openaside&apos;);</div><div class="line">...........</div><div class="line"></div><div class="line">c.click(function()&#123;</div><div class="line">    a.addClass(&apos;fadeOut&apos;).css(&apos;display&apos;, &apos;none&apos;);</div><div class="line">    o.css(&apos;display&apos;, &apos;block&apos;).addClass(&apos;fadeIn&apos;);</div><div class="line">    m.addClass(&apos;moveMain&apos;);</div><div class="line">  &#125;);</div><div class="line">  o.click(function()&#123;</div><div class="line">    o.css(&apos;display&apos;, &apos;none&apos;).removeClass(&apos;beforeFadeIn&apos;);</div><div class="line">    a.css(&apos;display&apos;, &apos;block&apos;).removeClass(&apos;fadeOut&apos;).addClass(&apos;fadeIn&apos;);      </div><div class="line">    m.removeClass(&apos;moveMain&apos;);</div><div class="line">  &#125;);</div></pre></td></tr></table></figure></p>
<p>虽然我不会javascript，但是根据这段代码，猜一下意思：</p>
<pre><code>当关闭侧边栏(closeaside)按钮被点击，就添加一个叫做moveMain的东西；
当打开侧边栏(openaside)的按钮被点击，就移除这个叫做moveMain的东西。
</code></pre><p>觉得moveMain很可疑，而且move移动，Main就是文章列表的div的名字，这个解释天衣无缝啊。</p>
<p>我在themes\coney\source\css_partial文件夹下面的index.styl中找到了这个moveMain<br><figure class="highlight plain"><table><tr><td class="gutter"><pre><div class="line">1</div><div class="line">2</div></pre></td><td class="code"><pre><div class="line">.moveMain</div><div class="line">  margin-left 10% !important</div></pre></td></tr></table></figure></p>
<p>网上搜索了一下，发现margin-left的意思是：</p>
<blockquote>
<p>margin-left 属性设置元素的左外边距。</p>
</blockquote>
<p>就是距离左侧10%的距离，假设原来的距离小于10%，当我点了关闭侧边栏以后，为了让main距离左侧的距离达到10%，不就正好的是向右移动吗？</p>
<p>既然这个解释天衣无缝，那就把left改成right试一试效果。</p>
<p><img src="http://7sbpmp.com1.z0.glb.clouddn.com/change_coneymove.jpg" alt=""></p>
<p>这样看起来似乎已经达到效果了，但是感觉有些地方不太和谐。</p>
<p><img src="http://7sbpmp.com1.z0.glb.clouddn.com/change_coneydis.jpg" alt=""></p>
<p><img src="http://7sbpmp.com1.z0.glb.clouddn.com/change_coneydis2.jpg" alt=""></p>
<p>侧边栏距离文章列表太近了。</p>
<p>这个时候就要用到Chrome的强大功能了，启动审查元素功能，定位到侧边栏</p>
<p><img src="http://7sbpmp.com1.z0.glb.clouddn.com/change_coneydis3.jpg" alt=""></p>
<p>注意右侧<br><figure class="highlight plain"><table><tr><td class="gutter"><pre><div class="line">1</div></pre></td><td class="code"><pre><div class="line">margin 2em 0 0 3%</div></pre></td></tr></table></figure></p>
<p>margin是边界的意思，那么右边四个数据应该就是控制侧边栏上下左右距离的了。尝试修改，发现吧3%改成0的时候，出现了我希望的效果</p>
<p><img src="http://7sbpmp.com1.z0.glb.clouddn.com/change_coneydis4.jpg" alt=""></p>
<p>这个数据是在aside.styl中，修改以后生成页面，完美实现了需求的功能。你在首页或者这个页面都可以看到最终效果。</p>
<p>需要说明的是，虽然我写了这么长一篇，但是我实际上是没有CSS基础的，都是自己摸索，所以你也可以做出自己的主题。</p>
<p>既然选择了Hexo，也就选择了折腾。</p>
<p>生命不息，折腾不止。</p>

      
    </div>

    <div>
      
        
<div id="wechat_subscriber" style="display: block; padding: 10px 0; margin: 20px auto; width: 100%; text-align: center">
    <img id="wechat_subscriber_qcode" src="/images/wechatplatform.jpg" alt="Kingname wechat" style="width: 200px; max-width: 100%;"/>
    <div>第一时间获取最新文章更新，请订阅我的微信公众号：未闻Code</div>
</div>


      
    </div>

    <div>
      
        

      
    </div>


    <footer class="post-footer">
      
        <div class="post-tags">
          
            <a href="/tags/hexo/" rel="tag"># hexo</a>
          
            <a href="/tags/css/" rel="tag"># css</a>
          
        </div>
      

      
        <div class="post-nav">
          <div class="post-nav-next post-nav-item">
            
              <a href="/2014/12/14/Hexo的coney主题的一些补充说明/" rel="next" title="Hexo的coney主题的一些补充说明">
                <i class="fa fa-chevron-left"></i> Hexo的coney主题的一些补充说明
              </a>
            
          </div>

          <span class="post-nav-divider"></span>

          <div class="post-nav-prev post-nav-item">
            
              <a href="/2014/12/18/从E-E到S-E/" rel="prev" title="从E.E到S.E">
                从E.E到S.E <i class="fa fa-chevron-right"></i>
              </a>
            
          </div>
        </div>
      

      
      
    </footer>
  </article>



    <div class="post-spread">
      
    </div>
  </div>


          </div>
          


          
        </div>
        
          
  
  <div class="sidebar-toggle">
    <div class="sidebar-toggle-line-wrap">
      <span class="sidebar-toggle-line sidebar-toggle-line-first"></span>
      <span class="sidebar-toggle-line sidebar-toggle-line-middle"></span>
      <span class="sidebar-toggle-line sidebar-toggle-line-last"></span>
    </div>
  </div>

  <aside id="sidebar" class="sidebar">
    <div class="sidebar-inner">

      

      

      <section class="site-overview sidebar-panel sidebar-panel-active">
        <div class="site-author motion-element" itemprop="author" itemscope itemtype="http://schema.org/Person">
          <img class="site-author-image" itemprop="image"
               src="/images/avatar.png"
               alt="Kingname" />
          <p class="site-author-name" itemprop="name">Kingname</p>
          <p class="site-description motion-element" itemprop="description">爬虫工程师，极客学院讲师，Python, Scrapy, MongoDB, Redis, Pandas, Golang。</p>
        </div>
        <nav class="site-state motion-element">
          <div class="site-state-item site-state-posts">
            <a href="/archives">
              <span class="site-state-item-count">42</span>
              <span class="site-state-item-name">日志</span>
            </a>
          </div>

          
            <div class="site-state-item site-state-categories">
              
                <span class="site-state-item-count">13</span>
                <span class="site-state-item-name">分类</span>
              
            </div>
          

          
            <div class="site-state-item site-state-tags">
              <a href="/tags">
                <span class="site-state-item-count">66</span>
                <span class="site-state-item-name">标签</span>
              </a>
            </div>
          

        </nav>

        
          <div class="feed-link motion-element">
            <a href="/atom.xml" rel="alternate">
              <i class="fa fa-rss"></i>
              RSS
            </a>
          </div>
        

        <div class="links-of-author motion-element">
          
            
              <span class="links-of-author-item">
                <a href="https://github.com/kingname" target="_blank" title="Github">
                  
                    <i class="fa fa-fw fa-globe"></i>
                  
                  Github
                </a>
              </span>
            
              <span class="links-of-author-item">
                <a href="mailto:contact@kingname.info" target="_blank" title="Mail">
                  
                    <i class="fa fa-fw fa-globe"></i>
                  
                  Mail
                </a>
              </span>
            
          
        </div>

        
        

        
        
          <div class="links-of-blogroll motion-element links-of-blogroll-inline">
            <div class="links-of-blogroll-title">
              <i class="fa  fa-fw fa-globe"></i>
              Friends
            </div>
            <ul class="links-of-blogroll-list">
              
                <li class="links-of-blogroll-item">
                  <a href="http://chuangzaoshi.com/" title="创造狮" target="_blank">创造狮</a>
                </li>
              
            </ul>
          </div>
        

        


      </section>

      

    </div>
  </aside>


        
      </div>
    </main>

    <footer id="footer" class="footer">
      <div class="footer-inner">
        <div class="copyright" >
  
  &copy; 
  <span itemprop="copyrightYear">2018</span>
  <span class="with-love">
    <i class="fa fa-heart"></i>
  </span>
  <span class="author" itemprop="copyrightHolder">Kingname</span>
</div>


<div class="powered-by">
  由 <a class="theme-link" href="https://hexo.io">Hexo</a> 强力驱动
</div>

<div class="theme-info">
  主题 -
  <a class="theme-link" href="https://github.com/iissnan/hexo-theme-next">
    NexT.Mist
  </a>
</div>


        

        
      </div>
    </footer>

    <div class="back-to-top">
      <i class="fa fa-arrow-up"></i>
    </div>
  </div>

  

<script type="text/javascript">
  if (Object.prototype.toString.call(window.Promise) !== '[object Function]') {
    window.Promise = null;
  }
</script>









  



  
  <script type="text/javascript" src="/lib/jquery/index.js?v=2.1.3"></script>

  
  <script type="text/javascript" src="/lib/fastclick/lib/fastclick.min.js?v=1.0.6"></script>

  
  <script type="text/javascript" src="/lib/jquery_lazyload/jquery.lazyload.js?v=1.9.7"></script>

  
  <script type="text/javascript" src="/lib/velocity/velocity.min.js?v=1.2.1"></script>

  
  <script type="text/javascript" src="/lib/velocity/velocity.ui.min.js?v=1.2.1"></script>

  
  <script type="text/javascript" src="/lib/fancybox/source/jquery.fancybox.pack.js?v=2.1.5"></script>


  


  <script type="text/javascript" src="/js/src/utils.js?v=5.1.0"></script>

  <script type="text/javascript" src="/js/src/motion.js?v=5.1.0"></script>



  
  

  
  <script type="text/javascript" src="/js/src/scrollspy.js?v=5.1.0"></script>
<script type="text/javascript" src="/js/src/post-details.js?v=5.1.0"></script>



  


  <script type="text/javascript" src="/js/src/bootstrap.js?v=5.1.0"></script>



  





  
  

  
  
    <script type="text/x-mathjax-config">
      MathJax.Hub.Config({
        tex2jax: {
          inlineMath: [ ['$','$'], ["\\(","\\)"]  ],
          processEscapes: true,
          skipTags: ['script', 'noscript', 'style', 'textarea', 'pre', 'code']
        }
      });
    </script>

    <script type="text/x-mathjax-config">
      MathJax.Hub.Queue(function() {
        var all = MathJax.Hub.getAllJax(), i;
        for (i=0; i < all.length; i += 1) {
          all[i].SourceElement().parentNode.className += ' has-jax';
        }
      });
    </script>
    <script type="text/javascript" src="//cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script>
  


  

  

  


</body>
</html>
